<template>
  <div>当前message:{{ mainStore.name }}</div>
  <a-button @click="mainStore.CHANGE_NAME('hello world')">hello world</a-button>
  <a-button @click="mainStore.CHANGE_NAME('hello message')">hello message</a-button>
</template>

<script setup lang="ts">
import useGlobal from '@/hooks/useGlobal'
const { mainStore } = useGlobal()
</script>

<style scoped></style>
